//
//  ZYCircleHanderView.h
//  YiLin
//
//  Created by Zyark on 2018/6/5.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYCircleHanderView;
@protocol ZYCircleHanderViewDelegate <NSObject>
@optional
/**
 改变温度
 @param circleHanderView 当前view
 @param temperature 温度值
 */
-(void)circleHanderView:(ZYCircleHanderView *)circleHanderView changeTemperature:(int)temperature;

/**
 是否正在改变温度
 @param circleHanderView 当前view
 @param isChange 是否改变
 */
-(void)circleHanderView:(ZYCircleHanderView *)circleHanderView isChangeTemperature:(BOOL)isChange;
@end
@interface ZYCircleHanderView : UIView
@property (nonatomic,assign) NSInteger maxTempure;//最低温度值
@property (nonatomic,assign) NSInteger minTempure;//最高温度值
@property (nonatomic,assign) int lineWidth;
@property (nonatomic,assign) NSInteger angle;
@property (nonatomic,assign) CGFloat tempureValue;//温度显示值
@property (nonatomic,assign) CGFloat value;//温度实际值
@property (nonatomic,assign) BOOL dragEnable;
@property(nonatomic,weak) id<ZYCircleHanderViewDelegate> delegate;
/**
 设置当前温度

 @param tempureValue 当前温度
 */
-(void)setTempureValue:(CGFloat)tempureValue;


@end
